package com.jiao.testdemo.pattern.flyweight;

/**
 * TODO(文件概要)
 *
 * <p> TODO(具体描述信息,可以不填)
 *
 * @author meetsocial
 * @version V1.0
 * @className: ConcreteFlyweight
 * @date 2024/11/15 10:14
 */
public class ConcreteFlyweight2 implements Flyweight{

    private String intrinsicState;

    public ConcreteFlyweight2(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsicState) {
        System.out.println("Intrinsic State2: " + intrinsicState + ", Extrinsic State2: " + extrinsicState);
    }

}
